package com.msb.service.impl;

import com.msb.pojo.Person;
import com.msb.service.MyPersonService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.List;

/**
 * @author sunpeng
 * @Date 2021-07-21 16:08
 */
public class MyPersonServiceImpl extends UnicastRemoteObject implements MyPersonService {
    public MyPersonServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public List<Person> findAll() throws RemoteException {
        List<Person> peoples = new ArrayList<>();
        peoples.add(new Person(1, "jia"));
        peoples.add(new Person(2, "yi"));
        return peoples;
    }
}
